package cn.yangtianxia.basic.mapper;

import cn.yangtianxia.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();

    T loadById(Long id);

    void save(T t);

    void update(T t);

    void delete(Long id);

    Long queryCount(BaseQuery query);

    List<T> queryData(BaseQuery query);

    void batchRemove(List<Long> ids);

}
